package core 
{
	import flash.display.BlendMode;
	import flash.display.Sprite;
	import flash.geom.ColorTransform;
	/**
	 * ...
	 * @author Kylin206
	 */
	public class ColorSprite extends Sprite
	{
		private var _color:uint = 0;
		
		public function ColorSprite() 
		{
			
		}
		
		public function get color():uint 
		{
			return _color;
		}
		
		public function set color(value:uint):void 
		{
			this._color = value;
			this.transform.colorTransform = new ColorTransform(0, 0, 0, 1, value >> 16, (value & 0xFF00) >> 8, (value & 0xFF), 0);
			this.blendMode = BlendMode.OVERLAY;
		}
		
	}

}